#include "GameServer.h"
#include "sceneobj_manager.h"
//#include "scene_variables.h"
#include "../share/common_define.h"


bool CGameObjManager::Initialize( )
{
	int32_t n = MAX_PLAYER;

	OBJ_POOL_DEFINE( OBJTYPE_PLAYER, n, "player", player_pool_ );
	OBJ_POOL_DEFINE( OBJTYPE_TEAM, n, "team", team_pool_);
	
	//OBJ_POOL_DEFINE( OBJTYPE_SESSION, ( n < 100 ) ? 10 : ( n / 10 ), "sesison", session_pool_ );

    LOG_INFO("default","init size : %ld", ( int64_t )n * sizeof( Player ) +
				(int64_t)n * sizeof(CTeam));

	return true;
}
